package cn.simon.free.ratelimiter.core;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 方法限流对象信息
 * controller层所有的方法
 *
 * @author simon
 * @date 2020/3/24 16:19
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Rate {

    /**
     * 唯一标识
     */
    private String unique;
    /**
     * 限流名称
     */
    private String name;
    /**
     * 限流速率
     */
    private double rate;
    /**
     * 是否参与限流
     */
    private boolean optOut;
}
